package ${xsPackage};

import io.swagger.annotations.ApiOperation;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

@Path("${s}")
@Consumes
@Produces
public interface ${xsPrefix}${x}${xsSuffix} {
        @Path("add")
        @ApiOperation("新增")
        int add(${x}AddOrUpdateReq req);

        @Path("delete")
        @ApiOperation("删除")
        int delete(String privateKey);

        @Path("update")
        @ApiOperation("修改")
        int update(${x}AddOrUpdateReq req);

        @Path("listAll")
        @ApiOperation("查询所有")
        List<${x}Detail> listAll();

        @Path("pageList")
        @ApiOperation("分页查询")
        Page<List<${x}Detail>> pageList(${x}PageReq req);

        @Path("getById")
        @ApiOperation("查看详情")
        ${x}Detail getById(String privateKey);
}